package com.chendx.model.customer.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * Created by chendx on 2022/4/29.
 */
@Data
@TableName(value = "tb_customer")
public class Customer {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;//

    @TableField("username")
    private String username;//用户名

    @ApiModelProperty(value = "盐",required = false)
    @TableField("salt")
    private String salt;//盐

    @ApiModelProperty(value = "密码，加密存储",required = false)
    @TableField("password")
    private String password;//密码，加密存储

    @ApiModelProperty(value = "注册手机号",required = false)
    @TableField("phone")
    private String phone;//注册手机号

    @TableField("headpic")
    private String headpic;

    @ApiModelProperty(value = "创建时间",required = false)
    @TableField("create_time")
    private Date createTime;//创建时间

    @TableField("status")
    private String status;

    @ApiModelProperty(value = "昵称",required = false)
    @TableField("nickname")
    private String nickName;//昵称
}
